<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - FDGrid</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/FDButton.html">FDButton</a></li>
	
	<li><a href="../symbols/FDCheckBox.html">FDCheckBox</a></li>
	
	<li><a href="../symbols/FDComponent.html">FDComponent</a></li>
	
	<li><a href="../symbols/FDControl.html">FDControl</a></li>
	
	<li><a href="../symbols/FDDatePick.html">FDDatePick</a></li>
	
	<li><a href="../symbols/FDDragUtil.html">FDDragUtil</a></li>
	
	<li><a href="../symbols/FDFieldComponent.html">FDFieldComponent</a></li>
	
	<li><a href="../symbols/FDGrid.html">FDGrid</a></li>
	
	<li><a href="../symbols/FDHidden.html">FDHidden</a></li>
	
	<li><a href="../symbols/FDItemComponent.html">FDItemComponent</a></li>
	
	<li><a href="../symbols/FDLib.html">FDLib</a></li>
	
	<li><a href="../symbols/FDLib.ajax.html">FDLib.ajax</a></li>
	
	<li><a href="../symbols/FDLib.browser.html">FDLib.browser</a></li>
	
	<li><a href="../symbols/FDLib.date.html">FDLib.date</a></li>
	
	<li><a href="../symbols/FDLib.dom.html">FDLib.dom</a></li>
	
	<li><a href="../symbols/FDLib.event.html">FDLib.event</a></li>
	
	<li><a href="../symbols/FDLib.string.html">FDLib.string</a></li>
	
	<li><a href="../symbols/FDLib.util.html">FDLib.util</a></li>
	
	<li><a href="../symbols/FDPanel.html">FDPanel</a></li>
	
	<li><a href="../symbols/FDPasswordBox.html">FDPasswordBox</a></li>
	
	<li><a href="../symbols/FDRadio.html">FDRadio</a></li>
	
	<li><a href="../symbols/FDSelectBox.html">FDSelectBox</a></li>
	
	<li><a href="../symbols/FDTab.html">FDTab</a></li>
	
	<li><a href="../symbols/FDTextArea.html">FDTextArea</a></li>
	
	<li><a href="../symbols/FDTextBox.html">FDTextBox</a></li>
	
	<li><a href="../symbols/FDTip.html">FDTip</a></li>
	
	<li><a href="../symbols/FDTipUtil.html">FDTipUtil</a></li>
	
	<li><a href="../symbols/FDTree.html">FDTree</a></li>
	
	<li><a href="../symbols/FDValidate.html">FDValidate</a></li>
	
	<li><a href="../symbols/FDWindow.html">FDWindow</a></li>
	
	<li><a href="../symbols/GlobalParams.html">GlobalParams</a></li>
	
	<li><a href="../symbols/JString.html">JString</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class FDGrid
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.js.html">FDGrid.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class FDGrid.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/FDGrid.html#constructor">FDGrid</a></b>(options)
							</div>
							<div class="description">Grid控件</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class FDGrid.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#buildParam">buildParam</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#callViewsProcess">callViewsProcess</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#checkAll">checkAll</a></b>()
								</div>
								<div class="description">选择当前页中所有的行。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#checkRow">checkRow</a></b>(index)
								</div>
								<div class="description">勾选一行，行索引从0开始。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#clearChecked">clearChecked</a></b>()
								</div>
								<div class="description">清除所有勾选的行。等同于uncheckAll()</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#clearSelected">clearSelected</a></b>()
								</div>
								<div class="description">取消单选的选择</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#deleteRow">deleteRow</a></b>(rowIndex)
								</div>
								<div class="description">删除某一行</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getChecked">getChecked</a></b>()
								</div>
								<div class="description">在复选框呗选中的时候返回所有行。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getData">getData</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getDataLength">getDataLength</a></b>()
								</div>
								<div class="description">得到当前数据条数</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getOptions">getOptions</a></b>()
								</div>
								<div class="description">返回默认属性</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getPageIndex">getPageIndex</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getPageSize">getPageSize</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getRowData">getRowData</a></b>(rowIndex)
								</div>
								<div class="description">根据索引得到某行数据</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getRows">getRows</a></b>()
								</div>
								<div class="description">获取所有数据</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getSelected">getSelected</a></b>()
								</div>
								<div class="description">返回第一个被选中的行</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getSelectorByRowIndex">getSelectorByRowIndex</a></b>(rowIndex)
								</div>
								<div class="description">通过行索引获取选择器,即input</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getSortName">getSortName</a></b>()
								</div>
								<div class="description">获取当前排序字段</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getSortOrder">getSortOrder</a></b>()
								</div>
								<div class="description">获取当前排序方式</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getTableTR">getTableTR</a></b>()
								</div>
								<div class="description">获取表格内容的TR</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getTbody">getTbody</a></b>()
								</div>
								<div class="description">获取<tboady></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#getThead">getThead</a></b>()
								</div>
								<div class="description">获取<thead></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#multiSelect">multiSelect</a></b>()
								</div>
								<div class="description">是否多选</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#isSelectStatus">isSelectStatus</a></b>()
								</div>
								<div class="description">是否是选择状态</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#singleSelect">singleSelect</a></b>()
								</div>
								<div class="description">是否单选</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#loadData">loadData</a></b>(data)
								</div>
								<div class="description">加载本地数据，旧的行将被移除。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#moveFirst">moveFirst</a></b>()
								</div>
								<div class="description">跳转至首页</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#moveLast">moveLast</a></b>()
								</div>
								<div class="description">跳转至尾页</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#moveNext">moveNext</a></b>()
								</div>
								<div class="description">下一页</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#movePreview">movePreview</a></b>()
								</div>
								<div class="description">上一页</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#postData">postData</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#refresh">refresh</a></b>()
								</div>
								<div class="description">本地刷新表格</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#registModel">registModel</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#registView">registView</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#reload">reload</a></b>()
								</div>
								<div class="description">重新加载数据</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#requestLocal">requestLocal</a></b>(a, c)
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#resetParam">resetParam</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#resetParams">resetParams</a></b>()
								</div>
								<div class="description">重置搜索参数</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#search">search</a></b>(data)
								</div>
								<div class="description">搜索</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#selectRecord">selectRecord</a></b>(id)
								</div>
								<div class="description">通过ID值参数选择一行。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#selectRow">selectRow</a></b>(index)
								</div>
								<div class="description">选择一行，行索引从0开始。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#setNoSelected">setNoSelected</a></b>(rowIndex)
								</div>
								<div class="description">设置某行数据不被选中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#setPageIndex">setPageIndex</a></b>(a)
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#setPageSize">setPageSize</a></b>(a)
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#setRowDisabled">setRowDisabled</a></b>(rowIndex)
								</div>
								<div class="description">设置某行不可选(在有选择框的条件下)</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#setRowEnabled">setRowEnabled</a></b>(rowIndex)
								</div>
								<div class="description">设置某行可选(在有选择框的条件下)</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#setSelected">setSelected</a></b>(rowIndex)
								</div>
								<div class="description">设置某行数据被选中</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#sort">sort</a></b>(sortName, sortOrder)
								</div>
								<div class="description">排序,只支持单属性排序</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#uncheckAll">uncheckAll</a></b>()
								</div>
								<div class="description">取消选择所有当前页中所有的行。</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/FDGrid.html#uncheckRow">uncheckRow</a></b>(index)
								</div>
								<div class="description">取消勾选一行，行索引从0开始。</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>FDGrid</b>(options)
				</div>
				
				<div class="description">
					Grid控件
					
				</div>
				
				
				
				<pre class="code">示例:
grid = new FDGrid({
	domId:'grid'
	//,url:'data.json'
	//,width:'200px'
	,data:gridData
	,onClickRow:function(rowData){
		FDLib.getEl('username').value = rowData.username;
		FDLib.getEl('addr').value = rowData.addr;
		FDLib.getEl('birth').value = rowData.birthday;
	}
	,selectOption:{singleSelect:true,onclick:selectHandler,onload:onloadSelect}
	,fitColumns:false
	,columns:[
		{text:"姓名",name:"username"}
		,{text:"联系地址",name:"addr"}
		,{text:"出生日期",name:"birthday"}
		,{text:"联系地址",name:"addr",style:{width:'200px'}}
		,{text:"出生日期",name:"birthday"}
		,{text:"联系地址",name:"addr"}
		,{text:"出生日期",name:"birthday"}
		,{text:"联系地址",name:"addr"}
		,{text:"出生日期",name:"birthday"}
		,{text:"联系地址",name:"addr"}
		,{text:"出生日期",name:"birthday"}
		,{text:"年龄",name:"age"}
	]
	,actionButtons:[
		{text:'修改',onclick:update}
		,{text:'删除',onclick:del,showFun:function(rowData,rowIndex){
			// 如果是3的倍数就显示删除按钮
			return ((rowIndex+1) % 3 === 0)
		}}
	]
});</pre>
				
				
				
				
					
						<dl class="detailList">
						<dt class="heading">Parameters:</dt>
						
							<dt>
								 <b>options</b>
								
							</dt>
								<dd>参见<a href="../symbols/FDGrid.html#getOptions">#getOptions</a>返回的对象</dd>
						
						</dl>
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="buildParam"> </a>
					<div class="fixedFont">
					
					
					<b>buildParam</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="callViewsProcess"> </a>
					<div class="fixedFont">
					
					
					<b>callViewsProcess</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="checkAll"> </a>
					<div class="fixedFont">
					
					
					<b>checkAll</b>()
					
					</div>
					<div class="description">
						选择当前页中所有的行。
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="checkRow"> </a>
					<div class="fixedFont">
					
					
					<b>checkRow</b>(index)
					
					</div>
					<div class="description">
						勾选一行，行索引从0开始。
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>index</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="clearChecked"> </a>
					<div class="fixedFont">
					
					
					<b>clearChecked</b>()
					
					</div>
					<div class="description">
						清除所有勾选的行。等同于uncheckAll()
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="clearSelected"> </a>
					<div class="fixedFont">
					
					
					<b>clearSelected</b>()
					
					</div>
					<div class="description">
						取消单选的选择
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="deleteRow"> </a>
					<div class="fixedFont">
					
					
					<b>deleteRow</b>(rowIndex)
					
					</div>
					<div class="description">
						删除某一行
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getChecked"> </a>
					<div class="fixedFont">
					
					
					<b>getChecked</b>()
					
					</div>
					<div class="description">
						在复选框呗选中的时候返回所有行。
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd>返回数组</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getData"> </a>
					<div class="fixedFont">
					
					
					<b>getData</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getDataLength"> </a>
					<div class="fixedFont">
					
					
					<b>getDataLength</b>()
					
					</div>
					<div class="description">
						得到当前数据条数
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd>返回int类型</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getOptions"> </a>
					<div class="fixedFont">
					
					
					<b>getOptions</b>()
					
					</div>
					<div class="description">
						返回默认属性
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd>返回json数据类型<pre><code>
{
	// html元素ID,指定表格渲染到那个元素上 
	domId:''
	// 服务端请求链接 
	,url:''
	// 主键ID 
	,id:null 
	// 表格宽,默认为自适应 
	,width:''
	// 表格高,默认为自适应 
	,height:''
	 // 申明表格列
	 // { text:"姓名",name:"username",style:{text-align:'center'}
	 // 	,render:function(rowData,td,rowIndex){return "aaa";}
	 //  ,sortName:'' }
	,columns:[]
	// 列默认样式 
	,columnDefaultStyle:{width:'100px'}
	 // 使列自动展开/收缩到合适的数据表格宽度。
	,fitColumns:true
	 // 操作列配置表
	,actionColumnConfig:{text:'操作',style:{'textAlign':'center'}}
	 // 表格操作按钮
	 // {text:'修改',onclick:'update',showFun:function(rowData,rowIndex){}}
	,actionButtons:[]
	 // 列选择设置,
	 // 	isSelectable是否多选
	 // 	singleSelect是否单选
	,selectOption:{
		multiSelect:false
		,singleSelect:false
		,onclick:function(rowData,selector,tr,rowIndex){}
	}
	//
	 // 存放表格DOM节点实例,统一管理
	 // 当前行render事件
	 // @param domTr当前行DOM对象
	 // @param rowData当前数据
	 // @param rowIndex当前行索引
	,rowRender:function(domTr,rowData,rowIndex){}
	 // 视图层类
	,view:GlobalParams.defalutView
	 // 模型层类
	,model:GlobalParams.defalutModel
	 // 是否显示分页组件
	,showPaging:true
	 // 是否显示表格设置按钮
	,showSetting:true
	 // 当前页数
	,pageCount:0
	 // 当前页索引
	,pageIndex:1
	// 总记录数 
	,total:0
	// 每页大小选择项 
	,pageSizeParam:[10,20,30]
	 // 每页几条数据
	,pageSize:0
	// 表格的查询参数 
	,schData:{}
	 // 结果
	,result:null
	// 表格数据,数组类型 
	,data:null
	// 排序字段 
	,sortName:null
	// 排序方式 
	,sortOrder:'DESC'
	 // 返回自身grid对象
	,getGrid:function() {
		return self;
	}
	// 勾选中的样式
	,selectRowClassName : 'ui-state-active'
	// 点击行的样式
	,clickRowClassName : 'ui-state-highlight'
	 // 在载入请求数据数据之前触发，如果返回false可终止载入数据操作。
	 // @return 如果返回false可终止载入数据操作。
	,onBeforeLoad:function(param){return true;}
	 // 在数据加载成功的时候触发。
	,onLoadSuccess:function(data){return data;}
	 // 在用户点击一行的时候触发
	 //  @param rowIndex：点击的行的索引值，该索引值从0开始。
	 //  @param rowData：对应于点击行的记录。
	,onClickRow:function(rowData,rowIndex){}
}
</code></pre></dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getPageIndex"> </a>
					<div class="fixedFont">
					
					
					<b>getPageIndex</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getPageSize"> </a>
					<div class="fixedFont">
					
					
					<b>getPageSize</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getRowData"> </a>
					<div class="fixedFont">
					
					
					<b>getRowData</b>(rowIndex)
					
					</div>
					<div class="description">
						根据索引得到某行数据
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd>json格式</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getRows"> </a>
					<div class="fixedFont">
					
					
					<b>getRows</b>()
					
					</div>
					<div class="description">
						获取所有数据
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd>数组格式</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getSelected"> </a>
					<div class="fixedFont">
					
					
					<b>getSelected</b>()
					
					</div>
					<div class="description">
						返回第一个被选中的行
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd>返回行数据</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getSelectorByRowIndex"> </a>
					<div class="fixedFont">
					
					
					<b>getSelectorByRowIndex</b>(rowIndex)
					
					</div>
					<div class="description">
						通过行索引获取选择器,即input
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getSortName"> </a>
					<div class="fixedFont">
					
					
					<b>getSortName</b>()
					
					</div>
					<div class="description">
						获取当前排序字段
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getSortOrder"> </a>
					<div class="fixedFont">
					
					
					<b>getSortOrder</b>()
					
					</div>
					<div class="description">
						获取当前排序方式
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getTableTR"> </a>
					<div class="fixedFont">
					
					
					<b>getTableTR</b>()
					
					</div>
					<div class="description">
						获取表格内容的TR
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getTbody"> </a>
					<div class="fixedFont">
					
					
					<b>getTbody</b>()
					
					</div>
					<div class="description">
						获取<tboady>
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getThead"> </a>
					<div class="fixedFont">
					
					
					<b>getThead</b>()
					
					</div>
					<div class="description">
						获取<thead>
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="multiSelect"> </a>
					<div class="fixedFont">
					
					
					<b>multiSelect</b>()
					
					</div>
					<div class="description">
						是否多选
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="isSelectStatus"> </a>
					<div class="fixedFont">
					
					
					<b>isSelectStatus</b>()
					
					</div>
					<div class="description">
						是否是选择状态
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="singleSelect"> </a>
					<div class="fixedFont">
					
					
					<b>singleSelect</b>()
					
					</div>
					<div class="description">
						是否单选
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="loadData"> </a>
					<div class="fixedFont">
					
					
					<b>loadData</b>(data)
					
					</div>
					<div class="description">
						加载本地数据，旧的行将被移除。
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>data</b>
									
								</dt>
								<dd>json数据</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="moveFirst"> </a>
					<div class="fixedFont">
					
					
					<b>moveFirst</b>()
					
					</div>
					<div class="description">
						跳转至首页
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="moveLast"> </a>
					<div class="fixedFont">
					
					
					<b>moveLast</b>()
					
					</div>
					<div class="description">
						跳转至尾页
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="moveNext"> </a>
					<div class="fixedFont">
					
					
					<b>moveNext</b>()
					
					</div>
					<div class="description">
						下一页
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="movePreview"> </a>
					<div class="fixedFont">
					
					
					<b>movePreview</b>()
					
					</div>
					<div class="description">
						上一页
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="postData"> </a>
					<div class="fixedFont">
					
					
					<b>postData</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="refresh"> </a>
					<div class="fixedFont">
					
					
					<b>refresh</b>()
					
					</div>
					<div class="description">
						本地刷新表格
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="registModel"> </a>
					<div class="fixedFont">
					
					
					<b>registModel</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="registView"> </a>
					<div class="fixedFont">
					
					
					<b>registView</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="reload"> </a>
					<div class="fixedFont">
					
					
					<b>reload</b>()
					
					</div>
					<div class="description">
						重新加载数据
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="requestLocal"> </a>
					<div class="fixedFont">
					
					
					<b>requestLocal</b>(a, c)
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>a</b>
									
								</dt>
								<dd></dd>
							
								<dt>
									<b>c</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="resetParam"> </a>
					<div class="fixedFont">
					
					
					<b>resetParam</b>()
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="resetParams"> </a>
					<div class="fixedFont">
					
					
					<b>resetParams</b>()
					
					</div>
					<div class="description">
						重置搜索参数
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="search"> </a>
					<div class="fixedFont">
					
					
					<b>search</b>(data)
					
					</div>
					<div class="description">
						搜索
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>data</b>
									
								</dt>
								<dd>查询参数,json格式</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="selectRecord"> </a>
					<div class="fixedFont">
					
					
					<b>selectRecord</b>(id)
					
					</div>
					<div class="description">
						通过ID值参数选择一行。
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>id</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="selectRow"> </a>
					<div class="fixedFont">
					
					
					<b>selectRow</b>(index)
					
					</div>
					<div class="description">
						选择一行，行索引从0开始。
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>index</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setNoSelected"> </a>
					<div class="fixedFont">
					
					
					<b>setNoSelected</b>(rowIndex)
					
					</div>
					<div class="description">
						设置某行数据不被选中
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setPageIndex"> </a>
					<div class="fixedFont">
					
					
					<b>setPageIndex</b>(a)
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>a</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setPageSize"> </a>
					<div class="fixedFont">
					
					
					<b>setPageSize</b>(a)
					
					</div>
					<div class="description">
						
						
							<br />
							<i>Defined in: </i> <a href="../symbols/src/js_src_FDGrid_FDGrid.min.js.html">FDGrid.min.js</a>.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>a</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setRowDisabled"> </a>
					<div class="fixedFont">
					
					
					<b>setRowDisabled</b>(rowIndex)
					
					</div>
					<div class="description">
						设置某行不可选(在有选择框的条件下)
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setRowEnabled"> </a>
					<div class="fixedFont">
					
					
					<b>setRowEnabled</b>(rowIndex)
					
					</div>
					<div class="description">
						设置某行可选(在有选择框的条件下)
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setSelected"> </a>
					<div class="fixedFont">
					
					
					<b>setSelected</b>(rowIndex)
					
					</div>
					<div class="description">
						设置某行数据被选中
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>rowIndex</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="sort"> </a>
					<div class="fixedFont">
					
					
					<b>sort</b>(sortName, sortOrder)
					
					</div>
					<div class="description">
						排序,只支持单属性排序
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>sortName</b>
									
								</dt>
								<dd>排序字段名</dd>
							
								<dt>
									<b>sortOrder</b>
									
								</dt>
								<dd>排序方式,即ASC,DESC</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="uncheckAll"> </a>
					<div class="fixedFont">
					
					
					<b>uncheckAll</b>()
					
					</div>
					<div class="description">
						取消选择所有当前页中所有的行。
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="uncheckRow"> </a>
					<div class="fixedFont">
					
					
					<b>uncheckRow</b>(index)
					
					</div>
					<div class="description">
						取消勾选一行，行索引从0开始。
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>index</b>
									
								</dt>
								<dd>行索引</dd>
							
							</dl>
						
						
						
						
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Wed Apr 22 2015 16:31:16 GMT+0800 (CST)
		</div>
	</body>
</html>
